package com.og.ouroa.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author Us
 * @since 2021-12-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="UserInfo对象", description="")
@TableName("user_info")
public class UserInfo implements Serializable {


    public static final int TEACHER = 1;
    public static final int STUDENT = 0;

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户id")
      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "学号/职工号")
    private String number;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "身份(0: 学生, 1: 老师)")
    private Boolean identity;

    @ApiModelProperty(value = "真实姓名")
    private String name;

    @ApiModelProperty(value = "年龄")
    private Integer age;

    @ApiModelProperty(value = "1: 男 0: 女")
    private Integer sex;

    @ApiModelProperty(value = "部门")
    private String dept;

    @ApiModelProperty(value = "邮箱")
    private String eMail;

    @ApiModelProperty(value = "用户头像 ")
    @TableField("img")
    private String img;

    @ApiModelProperty(value = "手机号")
    private String mobile;

    @ApiModelProperty(value = "状态（0：锁定 1：正常）")
    private Boolean status;

    @ApiModelProperty(value = "逻辑删除(1: 已删除，0: 未删除)")
    @TableField("is_deleted")
    @TableLogic
    private Boolean deleted;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime creatTime;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;


}
